<?php
include('../conn.php');
include('./tool/UpFileTool.class.php');
// 商家拒绝退货 
if (isset($_POST['shop_comment'])) {
  if ($_FILES['shop_images']['name'][0] != '') {
    $UpFileTool = new UpFileTool('shop_images');
    $UpFileTool->multiImage($w=500, $h=500,$sumbimage='../sumbimage', $srcimage='../srcimage');
    $images = $UpFileTool->multiSumbImage;
    $srcimages = $UpFileTool->multiSrcImage;
  }

  $shop_comment = $_POST['shop_comment'];
  $ordersid = $_POST['ordersid'];
  $state3 = 3;
  $datetime = date("Y-m-d H:i:s");
  $query = mysql_query("UPDATE tuihuo set shop_comment='".$shop_comment."',shop_images='".$images."',shop_srcimages='".$srcimages."',state = ".$state3.",2time='".$datetime."' where ordersid=".$ordersid);
  echo "<script>alert('已拒绝接单');window.location.href='index.php?state=4'</script>";
}
// 商家拒绝退货 end
?>
